 package server.carnival;

 import client.MapleCharacter;
 import handling.world.party.MaplePartyCharacter;
 import java.lang.ref.WeakReference;











 public class MapleCarnivalChallenge
 {
   final WeakReference<MapleCharacter> challenger;
/*  20 */   String challengeinfo = "";

   public MapleCarnivalChallenge(MapleCharacter challenger) {
/*  23 */     this.challenger = new WeakReference<>(challenger);
/*  24 */     this.challengeinfo += "#b";
/*  25 */     for (MaplePartyCharacter pc : challenger.getParty().getMembers()) {
/*  26 */       MapleCharacter c = challenger.getMap().getCharacterById(pc.getId());
/*  27 */       if (c != null) {
/*  28 */         this.challengeinfo += c.getName() + " / Level" + c.getLevel() + " / " + getJobNameById(c.getJob());
       }
     }
/*  31 */     this.challengeinfo += "#k";
   }

   public static String getJobNameById(int job) {
/*  35 */     switch (job) {
       case 0:
/*  37 */         return "Beginner";
       case 1000:
/*  39 */         return "Nobless";
       case 2000:
/*  41 */         return "Legend";
       case 2001:
/*  43 */         return "Evan";
       case 3000:
/*  45 */         return "Citizen";
       case 100:
/*  47 */         return "Warrior";
       case 110:
/*  49 */         return "Fighter";
       case 111:
/*  51 */         return "Crusader";
       case 112:
/*  53 */         return "Hero";
       case 120:
/*  55 */         return "Page";
       case 121:
/*  57 */         return "White Knight";
       case 122:
/*  59 */         return "Paladin";
       case 130:
/*  61 */         return "Spearman";
       case 131:
/*  63 */         return "Dragon Knight";
       case 132:
/*  65 */         return "Dark Knight";
       case 200:
/*  67 */         return "Magician";
       case 210:
/*  69 */         return "Wizard(Fire,Poison)";
       case 211:
/*  71 */         return "Mage(Fire,Poison)";
       case 212:
/*  73 */         return "Arch Mage(Fire,Poison)";
       case 220:
/*  75 */         return "Wizard(Ice,Lightning)";
       case 221:
/*  77 */         return "Mage(Ice,Lightning)";
       case 222:
/*  79 */         return "Arch Mage(Ice,Lightning)";
       case 230:
/*  81 */         return "Cleric";
       case 231:
/*  83 */         return "Priest";
       case 232:
/*  85 */         return "Bishop";
       case 300:
/*  87 */         return "Archer";
       case 310:
/*  89 */         return "Hunter";
       case 311:
/*  91 */         return "Ranger";
       case 312:
/*  93 */         return "Bowmaster";
       case 320:
/*  95 */         return "Crossbow man";
       case 321:
/*  97 */         return "Sniper";
       case 322:
/*  99 */         return "Crossbow Master";
       case 400:
/* 101 */         return "Rogue";
       case 410:
/* 103 */         return "Assassin";
       case 411:
/* 105 */         return "Hermit";
       case 412:
/* 107 */         return "Night Lord";
       case 420:
/* 109 */         return "Bandit";
       case 421:
/* 111 */         return "Chief Bandit";
       case 422:
/* 113 */         return "Shadower";
       case 430:
/* 115 */         return "Blade Recruit";
       case 431:
/* 117 */         return "Blade Acolyte";
       case 432:
/* 119 */         return "Blade Specialist";
       case 433:
/* 121 */         return "Blade Lord";
       case 434:
/* 123 */         return "Blade Master";
       case 500:
/* 125 */         return "Pirate";
       case 510:
/* 127 */         return "Brawler";
       case 511:
/* 129 */         return "Marauder";
       case 512:
/* 131 */         return "Buccaneer";
       case 520:
/* 133 */         return "Gunslinger";
       case 521:
/* 135 */         return "Outlaw";
       case 522:
/* 137 */         return "Corsair";
       case 501:
/* 139 */         return "Pirate (Cannoneer)";
       case 530:
/* 141 */         return "Cannoneer";
       case 531:
/* 143 */         return "Cannon Blaster";
       case 532:
/* 145 */         return "Cannon Master";
       case 1100:
       case 1110:
       case 1111:
       case 1112:
/* 150 */         return "Soul Master";
       case 1200:
       case 1210:
       case 1211:
       case 1212:
/* 155 */         return "Flame Wizard";
       case 1300:
       case 1310:
       case 1311:
       case 1312:
/* 160 */         return "Wind Breaker";
       case 1400:
       case 1410:
       case 1411:
       case 1412:
/* 165 */         return "Night Walker";
       case 1500:
       case 1510:
       case 1511:
       case 1512:
/* 170 */         return "Striker";
       case 2100:
       case 2110:
       case 2111:
       case 2112:
/* 175 */         return "Aran";
       case 2200:
       case 2210:
       case 2211:
       case 2212:
       case 2213:
       case 2214:
       case 2215:
       case 2216:
       case 2217:
       case 2218:
/* 186 */         return "Evan";
       case 2002:
       case 2300:
       case 2310:
       case 2311:
       case 2312:
/* 192 */         return "Mercedes";
       case 3001:
       case 3100:
       case 3110:
       case 3111:
       case 3112:
/* 198 */         return "Demon Slayer";
       case 3200:
       case 3210:
       case 3211:
       case 3212:
/* 203 */         return "Battle Mage";
       case 3300:
       case 3310:
       case 3311:
       case 3312:
/* 208 */         return "Wild Hunter";
       case 3500:
       case 3510:
       case 3511:
       case 3512:
/* 213 */         return "Mechanic";
       case 2003:
/* 215 */         return "Miser";
       case 2400:
       case 2410:
       case 2411:
       case 2412:
/* 220 */         return "Phantom";
       case 508:
       case 570:
       case 571:
       case 572:
/* 225 */         return "Jett";
       case 900:
/* 227 */         return "GM";
       case 910:
/* 229 */         return "SuperGM";
       case 800:
/* 231 */         return "Manager";
     }
/* 233 */     return "";
   }


   public static String getJobBasicNameById(int job) {
/* 238 */     switch (job) {
       case 0:
       case 1000:
       case 2000:
       case 2001:
       case 2002:
       case 2003:
       case 3000:
       case 3001:
/* 247 */         return "Beginner";
       case 100:
       case 110:
       case 111:
       case 112:
       case 120:
       case 121:
       case 122:
       case 130:
       case 131:
       case 132:
       case 1100:
       case 1110:
       case 1111:
       case 1112:
       case 2100:
       case 2110:
       case 2111:
       case 2112:
       case 3100:
       case 3110:
       case 3111:
       case 3112:
/* 270 */         return "Warrior";
       case 200:
       case 210:
       case 211:
       case 212:
       case 220:
       case 221:
       case 222:
       case 230:
       case 231:
       case 232:
       case 1200:
       case 1210:
       case 1211:
       case 1212:
       case 2200:
       case 2210:
       case 2211:
       case 2212:
       case 2213:
       case 2214:
       case 2215:
       case 2216:
       case 2217:
       case 2218:
       case 3200:
       case 3210:
       case 3211:
       case 3212:
/* 299 */         return "Magician";
       case 300:
       case 310:
       case 311:
       case 312:
       case 320:
       case 321:
       case 322:
       case 1300:
       case 1310:
       case 1311:
       case 1312:
       case 2300:
       case 2310:
       case 2311:
       case 2312:
       case 3300:
       case 3310:
       case 3311:
       case 3312:
/* 319 */         return "Bowman";
       case 400:
       case 410:
       case 411:
       case 412:
       case 420:
       case 421:
       case 422:
       case 430:
       case 431:
       case 432:
       case 433:
       case 434:
       case 1400:
       case 1410:
       case 1411:
       case 1412:
       case 2400:
       case 2410:
       case 2411:
       case 2412:
/* 340 */         return "Thief";
       case 500:
       case 501:
       case 508:
       case 510:
       case 511:
       case 512:
       case 520:
       case 521:
       case 522:
       case 530:
       case 531:
       case 532:
       case 570:
       case 571:
       case 572:
       case 1500:
       case 1510:
       case 1511:
       case 1512:
       case 3500:
       case 3510:
       case 3511:
       case 3512:
/* 364 */         return "Pirate";
     }
/* 366 */     return "";
   }


   public MapleCharacter getChallenger() {
/* 371 */     return this.challenger.get();
   }

   public String getChallengeInfo() {
/* 375 */     return this.challengeinfo;
   }
 }


/* Location:              C:\PGX\Server.jar!\server\carnival\MapleCarnivalChallenge.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */